/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package socof_trab1;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 *
 * @author Carlos Pinheiro
 */
public class SOCOF_Trab1
{

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws IOException
    {
        Laucher lb = Laucher.getInstance();
        lb.setMaxBandwithAllocation(100000);
        lb.setMaxCpuUsage(0.1);        
        lb.setDownloadersLimit(2);
        lb.setParsersLimit(3);
        
        lb.start();
        
        System.out.println("Enter something to finish: ");
        InputStreamReader converter = new InputStreamReader(System.in);
        BufferedReader in = new BufferedReader(converter);
        in.readLine();
        
        lb.interrupt();
    }
}
